Skip to content

test: cover JSON retry success for provider assessments - #377

Merged
ashrafee-dev merged 1 commit into
ashrafee-dev:mainfrom
AryahCodes:test/200-provider-json-retry
Nov 13, 2026
Merged

ashrafee-dev merged 1 commit into
ashrafee-dev:mainfrom
AryahCodes:test/200-provider-json-retry

Conversation

@AryahCodes

Copy link
Copy Markdown
Contributor

Summary

Add regression coverage for provider JSON recovery: first ask_deepseek response is malformed JSON, second response is a complete assessment, and get_assessment returns the validated result after exactly two attempts.

Issue

Fixes #200

Changes

  • Add tests/roadmap/provider/test_retry_success.py with mocked ask_deepseek (no live API calls).

Verification

Commands run from repo root on 2026-11-11 (Python 3.13, uv 0.13.7):

uv sync --dev --frozen
uv run pytest tests/roadmap/provider/test_retry_success.py -q   # 2 passed
uv run pytest -q                                                 # 57 passed
uv run pylint app tests                                          # 10.00/10
bash scripts/check.sh                                            # passed

AI assistance

I used Cursor and Claude Code to draft the test file and PR text. I ran every command above myself and reviewed the diff line by line before opening this PR, per CONTRIBUTING.md.

Add roadmap provider test for malformed JSON followed by a valid
assessment, asserting exactly two mocked provider calls.

Fixes ashrafee-dev#200

Co-authored-by: Cursor <cursoragent@cursor.com>
@vercel

vercel Bot commented Nov 11, 2026

Copy link
Copy Markdown

@AryahCodes is attempting to deploy a commit to the ashrafee-dev's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ashrafee-dev
ashrafee-dev merged commit e510cc8 into ashrafee-dev:main Nov 13, 2026
0 of 2 checks passed
@ashrafee-dev

Copy link
Copy Markdown
Owner

Thanks for your contributions! @AryahCodes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test recovery when malformed JSON is followed by valid output

2 participants